function selectSearchCat() {
	$("#searchCat").show();
}

function hideSearchCat() {
	$("#searchCat").hide();
}

function selectedCurCat(obj) {
    var curObj = $(obj);
    var selectCat = $("#selectCat");
    var oldSelectCat = selectCat.html();
	selectCat.html(curObj.html());
	curObj.html(oldSelectCat);
	$("#searchCat").hide();
}

function checkSearch() {
  	    var keyword = $("#searchKeyword").val();
  		if($.trim(keyword) == "")  {
  		    return false;
  		 } else {
  		 	return true;
  		 }
  	}

function submitSearchForm(event){
	if(event.keyCode == 13){
		checkSearch();
		doSearch();
		return false;
	}
	return true;
}
  	
function writeKeyword() {
    $("#searchKeyword").val("");
	$("#searchKeyword").css("color", "#000");
}